Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsv-uniq: Remove unnecessary memory allocation #234

Merged
merged 3 commits into from
Oct 14, 2019

Conversation

jondegenhardt
Copy link
Contributor

Three changes to reduce memory allocation and copying. Two cases involve creating a reusable buffer with appenders:

  • For single field keys, use the single field directly. Don't allocate or copy memory.
  • For multi-field keys, assemble the key in a reusable buffer.
  • For case-insensitive keys, assemble the lower-cased key in a reusable buffer.

@jondegenhardt jondegenhardt merged commit 45ab9d5 into eBay:master Oct 14, 2019
@jondegenhardt jondegenhardt deleted the tsv-uniq-use-appender branch October 14, 2019 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant